<!--# include Template('header'); #-->
<!--header----main-->
<link rel="stylesheet" type="text/css" href="css/up.css" />
<script language="javascript" src="script/jquery-1.2.1.pack.js"></script>
<script language="javascript">
var basename = "$basename"
var _debug = {};
//var photo_swfu = '';
<!--# if($action == 'edit'){#-->
var tid=$tid;

function editContent()
{
	var c = confirm("您已成功编辑了{$very[contentName]}信息，要接着上传文件到本{$very[contentName]}下吗？\\n\\n点击确定上传更多文件，点击取消直接完成修改。");
	if (c)
	{
		document.getElementById("step0").style.display = "none";
		document.getElementById("upfile").style.display = "block";
		$("#home-feed-type").hide();
		$("#step_descrip").html("第二步：添加更多的文件");
		createSWFUpload(tid);
		//objectSWF(tid);
	}
	else
	{
		window.location = 'my.php?action=upload';
		return;
	}
}
<!--#}#-->

</script>
<script type="text/javascript" src="script/swfupload.js"></script>
<script type="text/javascript" src="script/swfupload.queue.js"></script>
<script type="text/javascript" src="script/fileprogress.js"></script>
<script type="text/javascript" src="script/handlers.js"></script>
<script type="text/javascript" src="script/upload.js"></script>
<script type="text/javascript" src="script/global.js"></script>
<script type="text/javascript" src="script/xhr.js"></script>
<script type="text/javascript" src="script/jquery-ui.js"></script>
<div id="content">
  <div id="left">
	            <h2 id="step_descrip">
<!--#if($action=='edit'){#-->第一步：编辑{$very[contentName]}及相关文件<!--#}else{#-->第一步：填写{$very[contentName]}描述<!--#}#-->
            </h2>
<!--#if($action=='edit'){#-->
<div id="home-feed-type">
<ul class="list">
<li class="current" id="editIntro"><a href="#" onmouseover="showEditArea('intro');" onclick="return false;">编辑{$very[contentName]}说明</a></li>
<li id="editRes"><a href="#" onmouseover="showEditArea('resource');" onclick="return false;">编辑下属文件</a></li>
</ul>
</div><!--#}#-->
		        <div id="photoupload" style="width:100%; margin:5px auto;">
          <div id="step0" style="display:">
		  <div id="intro">
          <form action="upload.php?action=$action" method="post" name="FORM" enctype="multipart/form-data" target="uploadFrame" onsubmit="return checkRes();">
              <table width="100%" border="0" cellspacing="0" cellpadding="0">
                <tr class="line">
                  <td>目录</td>
                  <td><select name="cid" id="mulu" onchange="document.getElementById('cateid').value = this.value;">
                      <option value="">请选择目录</option>  
		$cate_select                    
                    </select></td>
                </tr>
                <!--
EOT;
foreach($inputArea as $value){
print <<<EOT
-->
                <tr class="line">
                  <td>$value[fieldname]</td>
                  <td>$value[input]</td>
                </tr>
                <!--
EOT;
}print <<<EOT
-->
				<tr class="line">
				<td>{$very[contentName]}是否公开</td>
				<td><input name="ifprivate" type="radio" value="0" $private_N />
				共享
				  <input name="ifprivate" type="radio" value="1" $private_Y /> 
				  私密 （私有{$very[contentName]}只有自己能够查看） </td>
				</tr>
                <tr class="line">
                  <td>当前标签</td>
                  <td><span style="float:right; padding-right:90px;">点击可删除标签</span>
                    <input name="tagsid" type="hidden" value=",$tagsid" />
                    <span id='tags_show'>$tags </span></td>
                </tr>
                <tr class="line">
                  <td>添加标签</td>
                  <td><span style="float:right; padding-right:70px;">多个标签可用空格区分</span>
                    <input type="text" name="tags" id="tags" class="input" size="40" onkeyup="SearchTag(event);" />
                    <input type="button" name="Submit3" value="点击添加" class="btn" onclick="addtag();" />
                    <div id="showtags" class="showtags"></div></td>
                </tr>
              </table>
              <div style="height:50px; text-align:center">
                <input name="step" type="hidden" id="step" value="2" />
                <input name="tid" type="hidden" id="tid" value="$tid" />
                <input type="submit" name="Submit" value="保存{$very[contentName]}" class="button" />
                <input type="reset" name="Submit2" value="重新填写" class="button" />
              </div>
            </form>
			</div>
<!--#if($action=='edit'){#-->
<div id="resource" style="display:none;">
<form action="upload.php?action=rename" method="post" target="uploadFrame" name="mul" id="mul">
<div id="resList">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody id="resourceTbody">
<tr id="listtitle">
    <td width="4%"><input type="checkbox" name="checkbox" value="checkbox" onclick="CheckAll(document.getElementById('mul'));" /></td>
    <td width="35%" style="text-align:center">标题</td>
    <td width="45%" style="text-align:center">原始文件名</td>
    <td width="12%" style="text-align:center">文件大小</td>
	<td width="4%">&nbsp;</td>
  </tr>
<!--#foreach($fileList as $r){#-->
  <tr class="line" id="res_{$r[rid]}">
  	<td><input name="delrid[]" type="checkbox" id="delrid[]" value="$r[rid]" /></td>
    <td><input type="text" class="input" value="$r[filetitle]" size="30" id="filetitle_$r[rid]" name="filetitle[{$r[rid]}]" />
    <a href="javscript:;" onclick="return saveTitle($r[rid]);"></a></td>
	<td>$r[filename]</td>
	<td>$r[filesize]</td>
	<td><a href="javascript:void(0);" onclick="removeRes('$r[rid]');"><img src="images/admin/delete.png" align="absmiddle" title="删除此资源" /></a></td>
  </tr>	
<!--#}#-->
</tbody>
</table>
</div>
<div style="text-align:center; padding:10px;">
<input name="tid" type="hidden" id="tid" value="$tid" />
<input type="submit" class="button" value="批量命名" onclick="return mulRename();" />
<input type="button" class="button" value="批量删除" onclick="return mulDelete();" />
</div>
</form>
</div>
<!--#}#-->
          </div>
          <div class="box" id="upfile" style="display:none;">
<div class="WarningMsg">如果系统挂载了视频转码模块，您所上传的视频将会自动转码，转码耗时视视频格式而定。</div>
		  <h3>
<!--# if($action == 'add'){#-->		  
{$very[contentName]}描述已保存，下面您可以上传相应文件，按住Ctrl键可同时选择多个文件。
<!--# }else{#-->
{$very[contentName]}已经编辑成功，您现在可以上传更多的文件到此{$very[contentName]}下。
<!--#}#-->		   
		   </h3>
            <div id="uperror"></div>
            <form action="upload.php" method="post" id="upload" name="upload">
              <div class="uploadControl">
              <span id="openFileWin"></span>
                <input id="btnCancel1" type="button" value="取消上传" onclick="cancelQueue(upload1);" disabled="disabled" style="margin-left: 2px; height: 22px; font-size:12px;margin-bottom:15px;" />
                
              </div>
              			  <table width="100%" border="0" cellspacing="0" cellpadding="0">
<tbody>
<tr class="listtitle"><td>上传列表</td></tr>
<tr><td id="uploadlist"></td></tr>
</tbody></table>
              
              <div id="donestatus">文件已成功上传，您可以点击”批量上传“来上传更多的文件。 </div>
              <!--list-->
              <div id="step2">
			  <div id="newfile">

</div>
               <!-- <ul id="photolist" class="clearfix">
                </ul>-->
              </div>
              <!--list end-->
              <!--up-->
			  <div style="clear:both; height:10px;"></div>
              <div id="step3" style="text-align:center; display:block;">
                <input type="submit" name="upbtn" id="upbtn"  value="重命名文件并完成上传" class="button" />
				<input type="button" name="complete" id="complete"  value="直接结束上传" class="button" onclick="window.location='my.php?action=upload';" />
                <input type="hidden" name="cateid" id="cateid" value="$defaultcid"/>
              </div>
              <!--up end-->
            </form>
          </div>
        </div>
        <div style="clear:both"></div>
  </div>
  <div class="right">
  <!--# include Template('sidebar-flash'); #-->
  </div>
</div>
<iframe name="uploadFrame" width="0" height="0" style="visibility:hidden"></iframe>
<div class="clear"></div>
<script language="javascript" src="script/content.js"></script>
<!---main----foot-->
<!--# include Template('foot');#-->